//
//  LMOrder.h
//  WelfareManager
//
//  Created by longmin on 17/3/23.
//  Copyright © 2017年 timtian. All rights reserved.
//

#import <Realm/Realm.h>
#import "LMOrderProduct.h"

@interface LMOrder : RLMObject

//"order_id":"订单ID",
@property NSString *order_id;
//"team_id":"团队id",
@property NSString *team_id;
//"store_id":"站点id",
@property NSString *store_id;
//"order_sn":"订单编号",
@property NSString *order_sn;
//"num":"总数量",
@property NSInteger num;
//"create_time":"下单时间",
@property NSTimeInterval create_time;
//"state":"状态编码",
@property LMOrderState state;
//"freight":"运费",
@property NSString *freight;
//"name":"状态名称",
@property NSString *name;
//"store_name":"订单来源",
@property NSString *store_name;
//"total_price":"客户价合计",
@property NSString *total_price;
//"product":[
@property RLMArray <LMOrderProduct *><LMOrderProduct> *product;

@end
RLM_ARRAY_TYPE(LMOrder)
